<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>设置中心</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/page.css">
    <script src="../js/jquery-3.2.1.min.js"></script>
    <script src="../js/media.js"></script>
    <script src="../js/common.js"></script>
    <style>

    </style>
</head>

<body>
  

    <!--正文-->
    <div class="setting-center bc-gray">

        <ul>
            <li class="flex">
                <span>退货地址</span>
                <em></em>
            </li>
        </ul>
        <p class="p p1">资质信息</p>
        <ul>
            <li class="flex" onclick="javascript:window.location.href='../page/option_chose.html'">
                <span>实名认证</span>
                <em id="true_name">未认证</em>
            </li>
            <li class="flex" onclick="javascript:window.location.href='../page/My-blessing.html'">
                <span>消保金</span>
                <em id='amount'>未缴纳</em>
            </li>
        </ul>
        <p class="p p1">店铺设置</p>
        <ul>
            <li class="flex">
                <span>竞拍设置</span>
                <em></em>
            </li>
           
            <li class="flex">
                <span>优惠券设置</span>
                <em>未开启</em>
            </li>
            <li class="flex" onclick="javascript:window.location.href='../page/Shop-settings.html'">
                <span>店铺折扣设置</span>
                <em id="discount">未开启</em>
            </li>
            <li class="flex" onclick="javascript:window.location.href='../page/Bidding-settings.html'">
                <span>买家出价条件设置</span>
                <em id="msg">未开启</em>
            </li>
            <li class="flex">
                <span>店铺位置</span>
                <em></em>
            </li>
        </ul>
        <p class="p p1">用户设置</p>
        <ul>
            <li class="flex" onclick="javascript:window.location.href='../page/my-fan.html'">
                <span>粉丝</span>
                <em>1</em>
            </li>
            <li class="flex" onclick="javascript:window.location.href='../page/Block-users.html'">
                <span>屏蔽用户</span>
                <em>1</em>
            </li>
        </ul>
        <p class="p p1">
            高级设置
        </p>
        <ul>
            <li class="flex">
                <span>固定『我的』为卖家中心</span>
                <div class="checkbox checkbox-slider--b-flat">
                    <label>
				<input type="checkbox"><span></span>
			</label>
                </div>
            </li>

        </ul>
    </div>

    <script>
        $(function () {
            $.ajax({
                url: base_url + 'ZITAOHUI/store/msg',
                data: {
                    store_id: s_id
                },
                success: function (data) {
                    console.log(data)
                    let all_data = data.extend.list;
                    if (all_data.store_authority == 0) {
                        $('#true_name').text('未审核')
                    } else if (all_data.store_authority == 1) {
                        $('#true_name').text('已审核')
                    } else if (all_data.store_authority == 21) {
                        $('#true_name').text('个人认证审核中')
                    } else if (all_data.store_authority == 22) {
                        $('#true_name').text('企业认证审核中')
                    } else if (all_data.store_authority == 3) {
                        $('#true_name').text('审核失败')
                        window.sessionStorage.setItem('authority_discrbe',all_data.authority_discrbe)
          
                    }
                    if (all_data.store_amount_guaranteed == 0) {
                        $('#amount').text('未缴纳')
                    } else {
                        $('#amount').text(all_data.store_amount_guaranteed)
                    }
                    if (all_data.is_discount_rate == true) {
                        $('#discount').text('已开启')
                    } else {
                        $('#discount').text('未开启')
                    }
                    if (all_data.default_rate == 0 && all_data.is_first_Msg == 0) {
                        $('#msg').text('未设置')
                    } else {
                        $('#msg').text('已设置')
                    }
                }
            })
        })
    </script>



</body>

</html>